<!DOCTYPE html>
<html  style="overflow : hidden; ">
<head>

    <meta name="Content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>加载栅格底图</title>
    <link rel="stylesheet" href="../leaflet/leaflet.css">
    <script type="text/javascript" src="../leaflet/leaflet.js"></script>
    <script type="text/javascript" src="../leaflet/CustomWebSDK.min.js"></script>
</head>

<body onload="init()"  style="margin : 0; ">
<div id="map" class="map" style ="position:absolute;bottom:0px;top:0px;width:100%"></div>

<script>
    function init(){
        var map = L.map('map',{crs:L.CRS.CustomEPSG4326,center: {lon:120.09215287988154,  lat:30.277052933991797},zoom:12,inertiaDeceleration:15000,maxZoom:20});
        //添加底图
        var layer = new L.GXYZ('http://ditu.zjzwfw.gov.cn:8090/mapserver/vmap/zjvmap/getMAP?x={x}&y={y}&l={z}&styleId=tdt_biaozhunyangshi_2017',{tileSize:512});
        map.addLayer(layer);


        var layerzj = new L.GXYZ('http://ditu.zjzwfw.gov.cn:8090/mapserver/label/zjvmap/getImg?x={x}&y={y}&l={z}&styleId=tdt_biaozhunyangshi_2017',{tileSize:512});
        map.addLayer(layerzj);


}

</script>

</body>
</html>
